class Money {
    number:any;
    constructor(props:any) {
        this.number = props
    }
    static add(one:any, two:any) {
        let str = (one.number + two.number).toString();
        let newStr = `${str[0]}元${str[1]}角`;
        return newStr
    }
    add(two:any) {
        let str = (one.number + two.number).toString();
        let newStr = `${str[0]}元${str[1]}角`;
        return newStr              
    }
    valueOf() {
        return this.number
    }
    toString() {
        let str = this.number.toString();
        let newStr = `${str[0]}元${str[1]}角`
        return newStr
    }
}

let one = new Money(80);
let two = new Money(100);
let three = Money.add(one, two)
let four = one.add(two);
// let five = new Money(one + two)
console.log(`${three},${four}`);